package com.zyq.exception;

import com.zyq.web.ServiceCode;

/**业务层异常类(业务层需要抛出异常时可以采用此类)*/
public class ServiceException extends  RuntimeException{
    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode, String message){
        super(message);
        this.serviceCode=serviceCode;
    }

    public ServiceCode getServiceCode(){
        return serviceCode;
    }
}
